package com.qfedu.dao.impl;

import com.qfedu.dao.User_cardsDao;
import com.qfedu.pojo.Infor;
import com.qfedu.pojo.User_cards;

public class User_cardsDaoImpl extends BaseDao implements User_cardsDao {

    @Override
    public User_cards queryUser_cards(String cardnumber, String name, String phone) {
        String sql = "select * from user_cards where cardnumber = ? and name = ? and phone = ?";
        return queryForOne(User_cards.class, sql, cardnumber,name,phone);
    }

    @Override
    public User_cards queryUser_cards(String cardnumber) {
        String sql = "select * from user_cards where cardnumber = ? ";
        return queryForOne(User_cards.class, sql, cardnumber);
    }
}
